<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <title>登录</title>
    <link rel="stylesheet" href="static/css/bootstrap.min.css"
          integrity="sha384-PDle/QlgIONtM1aqA2Qemk5gPOE7wFq8+Em+G/hmo5Iq0CCmYZLv3fVRDJ4MMwEA" crossorigin="anonymous"/>
    <style type="text/css">
        html,
        body {
            height: 100%;
        }
        body {
            display: -ms-flexbox;
            display: flex;
            -ms-flex-align: center;
            align-items: center;
            padding-top: 40px;
            padding-bottom: 40px;
            background-size: 100% 100%;
        }
        .form-signin {
            width: 100%;
            max-width: 330px;
            padding: 15px;
            margin: auto;
        }
        .form-signin .form-control {
            position: relative;
            box-sizing: border-box;
            height: auto;
            padding: 10px;
            font-size: 16px;
        }
        .form-signin .form-control:focus {
            z-index: 2;
        }
        .form-signin input[type="phone"] {
            margin-bottom: -1px;
            border-bottom-right-radius: 0;
            border-bottom-left-radius: 0;
        }

        .form-signin input[type="password"] {
            margin-bottom: 10px;
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }
        @media (min-width: 768px) {
        }
    </style>
</head>
<body style="flex-direction: column;padding: 0">

<form id="submitForm" class="form-signin"
      style="display: inline-block;width: 330px;max-width: 330px;padding: 0;margin: 0;margin-top: 350px;"
      th:action="@{/login}" method="post" onsubmit="doSubmit()">
    <input type="text" id="merchant_code" name="merchant_code" class="form-control" placeholder="商户号"
           autofocus="autofocus"/>
    <input type="text" id="phone" name="phone" class="form-control" placeholder="手机号" required="required"
           autofocus="autofocus"/>
    <input type="password" id="password" name="password" class="form-control" placeholder="密码"
           autofocus="autofocus"/>
    <input class="btn btn-lg btn-primary btn-block" type="submit" value="登录"/>
</form>

<script src="static/js/jquery-3.1.1.min.js"></script>

<script src="static/js/popper.min.js"
        integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
        crossorigin="anonymous"></script>
<script src="static/js/bootstrap.min.js"
        integrity="sha384-7aThvCh9TypR7fIc2HV4O/nFMVCBwyIUKL8XCtKE+8xgCgl/PQGuFsvShjr74PBp"
        crossorigin="anonymous"></script>
</body>
</html>